<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>菜品管理</title>
    <hdjs/>
    <bootstrap/>
</head>

<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td>菜品id</td>
            <td>菜品名称</td>
            <td>现价</td>
            <td>原价</td>
            <td>推荐</td>
            <td>已售数量</td>
            <td>菜品图片</td>
            <td width="200">操作</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$data" value="$v">
                <tr>
                    <td>{$v.gid}</td>
                    <td>{$v.gname}</td>
                    <td>{$v.new_price}</td>
                    <td>{$v.old_price}</td>
                    <td>{$v.tuijian}</td>
                    <td>{$v.saled}</td>   
                    <td><img style="width:50px;height:50px;" src="__ROOT__/{$v.goods_picture}" alt="" /></td>
                    <td width="200">
                        <a href="{|U:'Store/goods_edit',array('gid'=>$v['gid'])}" class="btn btn-success btn-xs">编辑</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs"onclick="if(confirm('确定删除吗？')) location.href='{|U:'Store/goods_dele',array('gid'=>$v['gid'])}'">删除</a>
                    </td>
                </tr>    
            </foreach>
            <div class="position-bottom">
                <a href="{|U:'Store/goods_add',array('tid'=>$tid)}" class="hd-success">添加菜品</a>
            </div>            
        </tbody>
    </table>

</div>

</body>
</html>


